package com.ztesoft.huangfu.learning.springboot.springbootredis.service;

import com.ztesoft.huangfu.learning.springboot.springbootredis.entity.User;

/**
 * Created with IntelliJ IDEA.
 * Author: huangfu.daohui
 * Date: 2018/5/26
 * Time: 17:52
 * Version: 1.0
 * Description: redis存取
 **/
public interface RedisService {
    void setRedisStringValue(String key, String value);

    String getRedisStringValue(String key);


    int addUser(User user);

    int delete(String id);

    int update(User user);

    User selectUserById(String id);

    void clearUser1All();
}
